added name match functions and name match threshold function