removed need for update() function