added enum for priority