fixing proximity problem