add second ctor for inv size