adding avg duration window