code cleanup for !alts