now taking file name for the index