moving into rails structure