proximity function works and is integrated with ranking