remove s.sort since it's already sorted