converting 2_3 code into 3_1 (five group)