modyfying total sample count