Changed line 175 to encoded_partition