Revert "Remove unsused var"

This reverts commit 21f232683ad0aad90537cb024aeb33156f44c93d.