he needed to visit his neighbor before he cooked dinner
he wants to take some food from his neighbor for dinner
visiting the neighbor is not in the preparation steps of cooking dinner
he can cook dinner at his neighbor's house