only encode