optimized transform controls, removed redundant code