restore previous method