pass indexname argument