converted to rails, working on body