added priority field to task