decode the encode