using 2 encoders