change deliminator to delimiter
remove trailing delimiter in serialize