corrected title function where assuming there will always be a second subfield