inputting patch size and changable window size