use %n for new line in printf