added jf.cor.quant function