moved var def to header file