proof reading: finished search and match section