Updated update() method so no for loop