end of map corrected