changed p_add