adds extern variable