work on LTC encoder