adding loss functions