determine_target needs scoping in example