temporary constructor inheritance