updating hooks