created new method to update