adding print function