corrected the position of the encoding