commit encoder