got the loss probability working, and separated out by unit type