update it file with g matrix info for encode