stack update

added stack in memory