add check duplicated id