automation of indexing of miilig mechine