improved dupe check format slightly