handle 0 values for p_random and p_enrich