Implement parting and change the format of JOIN