remove indexOf implementation