moved targetIsBelongsTo to within the run loops