update with new syntax that explicitly requires a window object