some little modifications. advanced_search_by_contrasts works, advanced_search does not