fixed syntax warnings