added block_gen and makeTADetectStim1