moved translation to active record translation