renamed updatePosition to update; call root.update() from draw()