boundary stuff from nature of code added