remove the class and realize the resource