Necessary and unnecessary invention