bug fix for print statement