udpating stack