update with new function

update with new function