added parameter for rang eof weight functions