YOU SAID:
i went to the fridge to eat the food
INTO JAPANESE
私は冷蔵庫に食べ物を食べに行った
BACK INTO ENGLISH
I went to the refrigerator to eat food.
INTO JAPANESE
私は食べ物を食べに冷蔵庫に行った。
BACK INTO ENGLISH
I went to the refrigerator to eat food.
You've done this before, haven't you.