added global USER variable to template