contains stacks from all sides