new changes to Sim class