updates record