added window function testing