link by mainId, subId #20
working well #20