J: added applycalpar, it runs, but results not checked yet
J: added applycalpar, it runs, but results not checked yet