put sum at the top