updated neighborhood code