added print code