have a function for in place element manipulation 'fixstruct'