added priorities functionality