updating for DOM i/o