move transformation before variables