commented to search function