removed viewer var