add stack and geometry