Removed unused undefined
Added identity function and fixed a misplaced pares ^^"