Molecular mechanisms for repair of DNA