cleaned up getTargets, moved targets.clear into calcTargets