re def function
update