every single rail function in one file