fixing styles
changed the way key in string was being computed