reverted unneeded rails changes