Removing old language from copy,paste of function