print function update