extracted the code to define data of 'profiles' as a function: registerProfiles() to avoid the compiler note: 'variable tracking size limit exceeded with -fvar-tracking-assignments, retrying without'.