working with duplicates and as nice table