reset key & some function