generate small SPN