added neighborhood functionality