fixed a few syntax bugs