setting index name with first arg