changed logic to find based on distance