work on numActiveDist figure