make valid ids uniq