changed sampling in given