fixed cp4 and p_and_g_4