nearby bubble definition added, bug fixes