changed min samples length