using tag global vars