moved transform methods to Trait