remove unused parameters and add a output for cleaning information.