changes in some functions and template for the DNA functions