added cost search and all selection for grapevariety