adaptions to search max