added indexOf and untyped ancestor call.