Changed struct element to union and moved type and line definition to upper structfor identifying the unions