added time, and keep track of the max