implemented proximity alert