added check to grow_stack
Merge remote-tracking branch 'origin/master'