error checking, corrected map