since this is operating on a single sample at a time, shouldn't the program completely bail here?