figuring out stacks