Optimization of rangs op