added temp variable for next days