for parametric method