add check two list connect fuction