minor bug fixes in print statements