//if DATAPERIOD>=1 and dataperiod