added debug to time