update function's return