Revert "remove unused variable"

This reverts commit 420456055f26cd0466d10a915fdf90c0cbfda2d5.
remove unused variable