update on loss functions