debugging print function