save update not working