why do you need a sum() after a trace()?