renamed and completed functions for food and activity