updating main