data loading work for classifier