refactoring to run sim_ocl2