oops, fixed bug in the totalling ...