modify proximity caliculate