Revert "removed unused var"

This reverts commit fa500dc7fd0583a7e4c505d4755bd4dd800bf8c6.