add priorities.