fixed space group generator function