testing whether sample works