update record not working 100%