add timestamp, add threshold