export fn update