turn the sequence around and add edge cases we never considered but happen