added zero-padded filename indexing