added clear key code