update process function on client side