fit to a uniform box