stacks were being displayed in reverse