remove calls to encoder