refactored subset size limits in neighbourhoods