converted simulator to a transformer