loss value updated