move production code to top