added time stamps to functions