added a few functions to DietManager