added key expire variable