made compiler handle alts