add filter time function