method for previous day data