avoid namespace collision of index() on MAC OS