added validation check for MapData