added rails factor shit