added missing object to time function