check for map first