use context as stack