totalling properly