search pin (finished)