added ability to select out the previous day's data