delete unused methods and fields