bugfix: only work with size of neighbour list array