update the method