added code for word mappings