Modified updateAll method()