setting up stack