more robust print statement