add update food function