reduce getSizes API call