updating the timmer and message to file