functions to find a potential target