uncomment the method to reset the map when input changes