making Q* class generation work