output with probbailities in a file