fixes syntax warnings