changed to all general code to encoder0