indexOf helper added