added logic for data for today