draw code