finish rename key, delete key function