box is now derived from range to function inside domains