fix for links that aren't capitalized. Removed dead code