refactoring prep_classifier data to iterate over channels