added single print function