upd .mat ring* and stucture*