main changes for inv