add urgency function