remove needless variables