genericElementHandling: added generic_struct method