added formatting for duplicate items