combine adjacent list