Union find Formatting