neigh_hh_output function