added kludge so that checking data flag doesn't prevent dividing a window by a constant