pull the stack/queue/list code