add close and delet variables