added priorities crud function