maybe this fixes the example
seperate object creation out of transform controls