unused var
Revert "fixes #941"

This reverts commit c536eed6b35316d07086f8589e2ca5f587de5d3f.