added windowSize support