update print state in main