Geometric phase and the generalized invariant formulation.