correction for parameters orders in (inPeriod ) method.