check for valid mappings