define variable in addkeys