added a note in the function description of Decode and Encode