added Index.contains