removes unused methods