added decimation stage to the analysis