first horse encoder