class decoder [] operator is now read-only  and class decoder can be passed
const