change the encode