hook update not working