debugged the map