add time threshold