initialized the rails