use context.parent instead of contextStack.peek