uncommented encoder