minor adjustment to remove 0 size stacks