stack and todo