definition of the commuting stack