mode code for decode