Fixed problem with samples to study var