moving constant prefix to the top
making sure vars are on top