fix id naming, flg naming.