adding output of last minute's data in separate file
changing to using last min file for temp data