update with fix to encoder