add map registration in simulation function

modify simulation function