changed file so it reads sample files automatically