adding stability to the key operation