documentUpdate works