Corrected sum stuff