encoding improvement