fixed bug in print line