remove the unused methods and formatted