update proximity caliculate.