some work on choosing closest target