removed unused variables.