added version of boundo that avoids adding duplicate elements