connect members function