updated logDuplicate message