remove unused parts