fixed update method to actually update