[UPDATE] changed quantile to inv.