need to use computed width for rects
add missing call to demo function