resolve distinct_sequence and is_bigger_smarter issues