refactor fs to dna