changed boundary and added "exterior" and "interior" functions