write stack
write stack