changed spike_AR to process in blocks