removed duplicates sorting since redundant