add updateall method