renamed stack into stacks