switched match to indexOf