init with inherit