replace me.indexOf with array.prototype function