worked on encoder base