complete the encoding model