refactors dna.rb to change valid? to invalid?