update consume function to not use TODAY constant