fixed self.sim error, not sure how it was running before