added emit distinction for exp in the gen