remove unused parameters, variables