correct initialization of members. caused problems in the destructor
order of header file and implementation of iddomain
order of h files