use encoder_output after assign a value