finished background functions (var, arrays)