improved sync process (HB._encode)