use pad instead of window
merge