finished debugging set_sim