add situation for duplicate elements