add constructor checking in every class with assertion notations