stopping data at zero crossing