contains methods replaced by indexof