fixed all syntax bugs