adding a warning for double instantiation.