scan backwards
fix bug (starting time was not reset for next day