updating main object