restore back some functions