how to make rails smooth