Changed p, a, g1 and g2 to big group