``inv`` not type stable anymore