commented up to the end of the search function