modify get_food model fucn.