adjustSize function

Adjustment of the sample size in case it is externally given