check for window overlap n=1