small fixes applied
    * if for arcos
    * fix for min/max neighbour