ensuring gibbs error is unsigned