uncommented encoder initialisation