use name sequence to determine file types