added queue, updated parts of stack