add and remove variable