updated food functionality to allow food updating