dump in rectangle helper