added a modified simulator