small encoder update