add time window in Kernel