adding rails check