different way of restricting max pool size