moved viewer variable