added the rest of functions for DietManager