finish search insert pos
finish remove duplicate second