added print func