checking for correct map value