prototype program for search program