added global for vars