removed calls to sim() in ch4
removed calls to sim() in ch3