Revert "fix to linear growth of stack"

This reverts commit 9ab788ba7b611b8e75f23985c779ff705490fbe9.
fix just the linear growth of stack