added today yesterday functionality