solved gaussian window