restore the after method