checked for null neighborhoods