Change key value pair accordingly