added encodinganalog to control