wikibook tweaked source code