add timestamp function the queue mod