patterns mappings