added code to nearb problem