Parametrized the location of the samples in visualizeHelper