clear keys before gen