fixed getting programs for samples