added pinsearch