adding sum debugging