removing not used variables