changed operator to P  >= 999999