undeprecate function