rectangle intersection tweak