corrected percentiles
corrected parameters of get_errorbars