added updateAll method