updating aggreate expressions to use 'source' attribute instead of operand. Fixed datetime predecessor method to use constants