removed global context variable