added sim-4, simplified