optionally adding the stack