printing sentences works correctly