Fixed function names, program correct subsamples