updating main object with search