replace/resotore existing function