added quadrature encoder