key_commit: removed the old function