update main record