re-implemented proximity