fixed syntactics bugs