Needed to pass int to sample method