output now formats correctly