fixed maxnumber of nodes