small changes for boundaries