cleanup of invoke()