complete del(), search()
modify function prototype