remove a few duplicate definitions of MAXRAYS