real encoder