modified rails4