update print code