expanded analysis of gibbs