modify neighbor module: the input parameter REF is removed  from init function to compute function