added some buffer to sum