removing unneccessary variables