trying to work out calcTargets issues