Handling duplicates

shape