add an alternate version of union1 and remove redundant $