clean some syntax warnings