add object check, vars created once