moved Contains to Extension methods