Edit print function