stack and queue updated