shuffle code between Compiler and Prims