use \n instead of \r for print progress of sampling