Imp Commit

rmoved (NUM_LOADS -1) from loop comparing priorities