fixes #7, rewrote code for boxes