working on calcTargets