make allrestaurants func for callback