remove unneccessary variables