remove the unnecessary text in the class