smarter auto range using average deviations