clean up unneaded code

Cut n paste the code from wiki instead