fixing format of keys