fixed multiline fprintf statement