remove unused parameters.