trapping for cases where there is no data in a week