restores the original function