added map reset fnction