[rewrite] remove dup from sorted list