Proper sturcutre for connec method