fixed sum warnings