update all method