added active flag to sample_types