removing unused variables