add delete variable function