encoder works!