Revert "remove unused variable"

This reverts commit d51830d66572c736cb0d1d51e6771b5eb1bfea74.