add mode SINGLE and COMPLETE linkage