added print function multi value support.