encoder in [I P] form