remove inherit code