update commented code that deletes keys