cleanup of keys