API update method
cleaning up trace