add connect_by_3 and connect