classifying stacks