fixed priority definition in temp table, should be int for correct comparison