trying to fix the lossrate