refactor sample folder.