update struct/various functions