some changes to sim