moved dict map outside of function,  already returns a string