update program stack management