fixed EOF newlines