add queue and stack