added calcTargets