fixed bug, added printLn