Changed losses to loss