moving prio calc into priorityWeighting to make sure getPriority always returns [0, 1]