added regex to grab priority