work on num_active