encoder integration