set it up to output correct sum