added printcode script