changed rails so it will work