removed unneeded indexOf