add stack and types