add partial search function