incorporated encoder code