print function done