agree with Patrik remark that since we initialise the memory for cand[maxcand], there is little harm to initialise all of it with -999