handle the stack key