added extern variable