format output
test rectangle overlap