fixed syntax bugs