fixed bug in print statements