refactors dna.rb