cleaning up the key