inherit by temp constructor