remove several unused variables