add getter for priority