added some windowing rules