updating encoding of cl data