update before print