changed error map implementation after code review