init
add variable samplesize