changed hallencoder