Added invert for dictionary