removed unused variables