need to finish the serach method. make and valid are done