add stack and linearstack