added ability to recalculate only certain halo IDs