removing duplicates columns and joins