added merge with primary account func