add topology code