worked on encoder