Change m to inv for a bit more clarity