fixed to not include outliers in center calculation