correcting the key