remove unused operations.