removed unused variables in rangelist