modify element struct