Update stack vs heap