clear unused parameters in callbacks.