change duplicate check