adding some print code