add of dR fixes and deletion of pointer in destructors