Variety-containing subgroup of group of prime power order