Update invert()
Remove unused method