reversing order of keys and values
resolved issue related to order