constructor instance check