refactor roto-trans