little change for search_max