change messages and add total time spent