optimize ingredients