use global vars to simplify usage