Another way to say "Spices are used to flavor food." is "food can be flavored with spices"