fixed IQR and range bug