Remove dublicated topology initialization. + Format code.
fixed code formatting