explained topology builder part of code