standardised map keys to keywords. removed debug print statement