added encoderconversion