fixed typo where losses = lossses