added context to visitor constructor