put function for foods resource