use passed encoder value