added diamond proximity function