added leading zeros for index in filenames