initialise minNll to something > nll value before starting loop (10 is actually small for some scenarios)