fixed links
removed unused code