updatet different classes