added minimum in range