added buildCoder fn