is the param `to` or `output` ? please update code or comment.