making set_transform more global