prioritizing functions