implementing search by PIN number