convert neighbour mixin to func. implement neighbour finding