fix for println
fixed the code based on the comment
Merge pull request #1 from mkilic/master

fix for println