duty to mitigate the loss