changed deque to stack for older phones