implemented stack growth