corrected encoding