modify search for a range
finish remove duplicates from sorted list