added any_duplicated function