changed more parse to deque stuff