adding logging with two time stamps